package edu.guet.server.service;

import edu.guet.server.mapper.TestMapper;
import edu.guet.server.model.Test;
import edu.guet.server.utils.ResultAPI;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class TestService {

    @Autowired
    TestMapper testMapper;

    public ResultAPI demoRequest(Test data) {
        Test t = testMapper.getTest(data);
        return ResultAPI.success(t);
    };
}